﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IllustratedCsharp7_ch20_Linq
{
    class chapt20_5_9IntoClause
    {
        static void _Main()
        {
            var groupA = new[] { 3, 4, 5, 6 };
            var groupB = new[] { 4, 5, 6, 7 };

            var someInts = from a in groupA
                           join b in groupB on a equals b
                           into groupAandB          //查询延续
                           from c in groupAandB
                           select c;
            foreach (var v in someInts)
                Console.Write($"{ v } ");
        }
    }
}
